/*
day380 
2020.9.11 
*/
#include<iostream>
#include<vector>
using namespace std;

class Solution {
public:
    int findKthPositive(vector<int>& arr, int k) {
		int i=0;
		while(i<arr.size())
		{
			if(arr[i]-(i+1)>k)
			{
				break;
			}
			else
			{
				++i;
			}
		 } 
		return arr[i-1]+(arr[i-1]-(i+1));
    }
};

int main()
{
	return 0;
}
